package com.ryan.day02.demo02;

import java.util.ArrayList;
import java.util.Random;

public class Demo01 {
    public static void main(String[] args) {
        Random r = new Random();
        ArrayList<Integer> arrayList = new ArrayList();
        for (int i = 0; i < 6; i++) {
            int i1 = r.nextInt(32) + 1;
            arrayList.add(i1);
        }
        System.out.println(arrayList);
        for (int i = 0; i < arrayList.size(); i++) {
            System.out.println(arrayList.get(i));
        }
    }
}
